import Vue from "vue";
import Vuex from "vuex";

import user from "./modules/user.js";
import acticle from "./modules/acticle.js";
import upload from "./modules/upload";
Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    loading: true
  },
  getters: {
    loading: state => state.loading
  },
  modules: {
    user,
    acticle,
    upload
  }
});
